/* 
 * File:   exercise5.h
 * Author: Vic
 *
 * Created on April 29, 2013, 1:46 PM
 */

#ifndef EXERCISE5_H
#define	EXERCISE5_H
#include <cstdlib>
#include <iostream>

void exercise5()
{
    char op;
    std::cout<<"Please enter operation\n";
    std::cin>>op;
    
    int num1, num2;
    std::cout<<"Please enter the numbers to operate on:\n";
    std::cin>>num1;
    std::cin>>num2;
    
    switch(op)
    {
        case'A':
            std::cout<<num1+num2<<std::endl;
            break;
        case'S':
            std::cout<<num1-num2<<std::endl;
            break;
        case'M':
            std::cout<<num1*num2<<std::endl;
;
            break;
    }
}


#endif	/* EXERCISE5_H */

